<!--
 * @Author: Stefan Liu
 * @Date: 2019-08-23 19:04:45
 * @LastEditTime: 2019-08-24 16:28:50
-->

<script>
import CheckPermissions from './CheckPermissions';
export default {
  functional: true,
  render(h, context) {
    const { props, scopedSlots } = context;
    const children = scopedSlots.default();
    const childrenRender = typeof children === 'undefined' ? null : children;
    return CheckPermissions(props.authority, childrenRender, props.noMatch);
  }
};
</script>